package com.house.building.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.house.common.utils.PageUtils;
import com.house.common.utils.Query;

import com.house.building.dao.BuildDao;
import com.house.building.entity.BuildEntity;
import com.house.building.service.BuildService;


@Service("buildService")
public class BuildServiceImpl extends ServiceImpl<BuildDao, BuildEntity> implements BuildService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BuildEntity> page = this.page(
                new Query<BuildEntity>().getPage(params),
                new QueryWrapper<BuildEntity>()
        );

        return new PageUtils(page);
    }

}